// 引入request.js请求工具
import request from "@/utils/request.js";

// 获取用户是否购买当前礼包
export const getUserIsBuyService = () => {
    return request.get("/package");
}

// 购买礼包
export const buyPackageService = (params) => {
    return request.post("/package/purchase", params);
}

// 获取用户是否购买会员
export const getUserIsMemberService = () => {
    return request.get("/member/current");
}

// 购买会员
export const buyMemberService = (memberType) => {
    return request.post(`/member/upgrade?memberType=${memberType}`);
}
